<template>
  <div class="fulltip">
    <span><i class="icon-tip-style" :class="icon"></i>{{tip}}</span>
  </div>
</template>
<script>
export default {
  data () {
    return {
      tip: '',
      icon: 'icon-tip'
    }
  },
  created () {
    var type = this.$route.params.type
    if (type === '1') {
      document.title = '登录成功'
      this.tip = '登录成功'
      this.icon = 'icon-success'
    } else if (type === '2') {
      document.title = '登陆失败'
      this.tip = '登陆失败，二维码已经过期'
      this.icon = 'icon-tip'
    } else if (type === '3') {
      document.title = '登陆失败'
      this.tip = '您没有权限，请联系管理员'
      this.icon = 'icon-tip'
    }
  }
}
</script>
<style>
.fulltip {
  text-align: center;
  margin-top: 50%;
  padding: 0 10%;
}
.fulltip .icon-tip-style {
  margin-right: 15px;
  color: #f7ba2a;
  font-size: 32px;
}
.fulltip span {
  color: #777;
  font-size: 18px;
  vertical-align: top;
  line-height: 32px;
}
</style>
